package jtk.project4.fleet.ibatis.dao;

import java.sql.SQLException;
import java.util.List;

import nl.coderight.jazz.dialog.MessageDialog;
import nl.coderight.jazz.dialog.MessageType;
import jtk.project4.fleet.domain.RbJoin;
//import jtk.project4.fleet.domain.VendorType;




public class RbJoinDao extends IbatisDao{
	
	public List selectRbJoin() throws SQLException {
		List selectRbJoin = null;
			selectRbJoin =getSqlMap().queryForList("SELECT_ALL_RBJoin", null);
		return selectRbJoin;
	}
/*
	public int deleteRBJoin(RbJoin rbjoin) throws SQLException{
		return (int) getSqlMap().delete("DELETE_RBJOIN", rbjoin);
	}
	
	public int updateRBJoin(RbJoin rbjoin) throws SQLException{
		return (int) getSqlMap().update("UPDATE_RbJOIN", rbjoin);
	}
	
	public RbJoin insertRbJoin(RbJoin rbjoin) throws SQLException{
		return (RbJoin) getSqlMap().insert("INSERT_RbJOIN", rbjoin);
	}

	public RbJoin insertRbJoinType(RbJoin rbjoin) throws SQLException {
		return (RbJoin) getSqlMap().insert("INSERT_RbJOIN_TYPE",rbjoin);
	}
	
		public List selectRbJoinType() throws SQLException {
		return getSqlMap().queryForList("SELECT_ALL_RBJOIN_TYPE", null);
	}
	*/
		
	public static void main (String args[]) throws SQLException{
		RbJoin rbjoin;
		rbjoin = new RbJoin();

		List<RbJoin> lis ;
		lis = new RbJoinDao().selectRbJoin();
		System.out.println(lis.size());
	}
	
}